package cn.lili.controller.goods;

import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.goods.integration.GoodsIntegrationService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/goods/integration")
@RequiredArgsConstructor
public class GoodsIntegrationController {

    private final GoodsIntegrationService goodsIntegrationService;

    @GetMapping("/updateIndexByStoreId")
    public ResultMessage<Object> updateIndexByStoreId(String storeId) {
        return goodsIntegrationService.updateIndexByStoreId(storeId);
    }
}
